<?php
/*
Home Slide Show v1.0
Brought to you by Stephen - www.gamekeybox.com
*/

class ControllerModuleHomepageslideshow extends Controller {

	protected function index() {
		//$this->language->load('module/homepageslideshow');

    	//$this->data['heading_title'] = $this->language->get('heading_title');
		//$this->load->model('tool/seo_url');

        $this->data['config_url'] = $this->config->get('config_url');
        $this->data['delay'] = $this->config->get('homepageslideshow_delay');
        $this->data['speed'] = $this->config->get('homepageslideshow_speed');
        $this->data['pause'] = $this->config->get('homepageslideshow_pause');
        $this->data['height'] = $this->config->get('homepageslideshow_height');
        $this->data['width'] = $this->config->get('homepageslideshow_width');

        $this->data['slide_images'] = unserialize($this->config->get('homepageslideshow_slide_image'));

		$this->id = 'homepageslideshow';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/homepageslideshow.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/homepageslideshow.tpl';
		} else {
			$this->template = 'default/template/module/homepageslideshow.tpl';
		}

		$this->render();
    }
}
?>